/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jiang Jinxi
 * Date: 2024-08-31
 * Time: 14:49
 */
class SingletonLazy {
    Object locker = new Object();
    private static SingletonLazy instance = null;
    public SingletonLazy getInstance(){
      if(instance == null){
          synchronized(locker){
              if(instance == null){
                  instance = new SingletonLazy();
              }
          }
      }
        return instance;
    }
    private SingletonLazy(){

    }
}
public class Demo22 {

}
